package sz.szsmk.citizencard.ui.activity;

import android.graphics.RectF;

import zhy.com.highlight.HighLight;
import zhy.com.highlight.position.OnBaseCallback;

public class OnCustomTopCallback extends OnBaseCallback {
    public OnCustomTopCallback() {
    }
    private float offsety;
    public OnCustomTopCallback(float offset, float offsety) {
        super(offset);
        this.offsety= offsety;
    }

    public void getPosition(float rightMargin, float bottomMargin, RectF rectF, HighLight.MarginInfo marginInfo) {
        marginInfo.leftMargin = rectF.right - rectF.width()-offsety ;
        marginInfo.bottomMargin = bottomMargin + rectF.height() + this.offset;
    }
}
